<?php


namespace app\api\controller\service;


use app\common\controller\Api;

class detail extends Api
{
    protected $noNeedLogin = ['rulesNeedKnow'];

    public function rulesNeedKnow()
    {
        $model = new \app\admin\model\service\info\ServiceDetail();
        $list = $model ->where('id',0)->select();
        $res  = $model ->where('pid',0)->select();

//        print_r($list);print_r($res);die;
        if($list) {
            $this->success('信息返回成功',$list);
        }else{
            $this->error('请后台设置详情');
        }
    }
}